<script type="text/html" template lay-done="layui.data.done(d);">
<div class="layui-form coreshop-form layui-form-pane" lay-filter="LAY-app-CoreCmsNewCart-createForm" id="LAY-app-CoreCmsNewCart-createForm">
	
	<div class="layui-form-item">
        <label for="id" class="layui-form-label  layui-form-required"></label>
        <div class="layui-input-block">
            <input  type="number" min="0" max="999999" name="id"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="1" placeholder="请输入" lay-reqText="请输入并为数字"  />
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="userId" class="layui-form-label  layui-form-required">用户ID</label>
        <div class="layui-input-block">
            <input  type="number" min="0" max="999999" name="userId"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="1" placeholder="请输入用户ID" lay-reqText="请输入用户ID并为数字"  />
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="productId" class="layui-form-label  layui-form-required">产品ID</label>
        <div class="layui-input-block">
            <input  type="number" min="0" max="999999" name="productId"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="1" placeholder="请输入产品ID" lay-reqText="请输入产品ID并为数字"  />
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="nums" class="layui-form-label  layui-form-required">货品数量</label>
        <div class="layui-input-block">
            <input  type="number" min="0" max="999999" name="nums"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="1" placeholder="请输入货品数量" lay-reqText="请输入货品数量并为数字"  />
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="type" class="layui-form-label  layui-form-required">购物车类型</label>
        <div class="layui-input-block">
            <input  type="number" min="0" max="999999" name="type"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="1" placeholder="请输入购物车类型" lay-reqText="请输入购物车类型并为数字"  />
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="objectId" class="layui-form-label  layui-form-required">关联对象序列</label>
        <div class="layui-input-block">
            <input  type="number" min="0" max="999999" name="objectId"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="1" placeholder="请输入关联对象序列" lay-reqText="请输入关联对象序列并为数字"  />
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="number" class="layui-form-label  layui-form-required">客户编号</label>
        <div class="layui-input-block">
            <input name="number"   lay-verType="tips" lay-verify="required" class="layui-input"  placeholder="请输入客户编号" lay-reqText="请输入客户编号"  />
        </div>
    </div>
	
      <div class="layui-form-item text-right core-hidden">
        <input type="button" class="layui-btn" lay-submit lay-filter="LAY-app-CoreCmsNewCart-createForm-submit" id="LAY-app-CoreCmsNewCart-createForm-submit" value="确认添加">
    </div>
</div>
</script>
<script>
    var debug= layui.setter.debug;
    layui.data.done = function (d) {
        //开启调试情况下获取接口赋值数据
        if (debug) { console.log(d.params.data); }
        layui.use(['admin', 'form', 'laydate', 'upload', 'coreHelper', 'cropperImg'],
        function () {
            var $ = layui.$
                , form = layui.form
                , admin = layui.admin
                , laydate = layui.laydate
                , upload = layui.upload
                , cropperImg = layui.cropperImg
                , coreHelper = layui.coreHelper;
	        
	        form.verify({
                
	        });
            //重载form
            form.render(null, 'LAY-app-CoreCmsNewCart-createForm');
        })
    };
</script>
